package com.bdqn.membersystem.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.bdqn.membersystem.pojo.UserPlace;
import java.util.List;
import com.bdqn.membersystem.mapper.UserPlaceMapper;
import com.bdqn.membersystem.service.UserPlaceService;
/**
* 作者：姚岳城
* 日期：2020/4/3 16:53
*/

@Service
public class UserPlaceServiceImpl implements UserPlaceService{

    @Resource
    private UserPlaceMapper userPlaceMapper;

    @Override
    public int deleteByPrimaryKey(String placeId) {
        return userPlaceMapper.deleteByPrimaryKey(placeId);
    }

    @Override
    public int insertSelective(UserPlace record) {
        return userPlaceMapper.insertSelective(record);
    }

    @Override
    public UserPlace selectByPrimaryKey(String placeId) {
        return userPlaceMapper.selectByPrimaryKey(placeId);
    }

    @Override
    public int updateByPrimaryKeySelective(UserPlace record) {
        return userPlaceMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateBatch(List<UserPlace> list) {
        return userPlaceMapper.updateBatch(list);
    }

    @Override
    public int batchInsert(List<UserPlace> list) {
        return userPlaceMapper.batchInsert(list);
    }

    @Override
    public int insertOrUpdate(UserPlace record) {
        return userPlaceMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(UserPlace record) {
        return userPlaceMapper.insertOrUpdateSelective(record);
    }

}
